<template>
  <view class="template-circle tn-safe-area-inset-bottom">

    <!-- 顶部自定义导航 -->
    <!-- <tn-nav-bar :isBack="false" :bottomShadow="false" backgroundColor="none">
      <view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-right">
        <view class="custom-nav__back" @click="tn('/homePages/search')">
          <view class="custom-nav__search__icon tn-icon-search tn-color-white"></view>
        </view>
      </view>
    </tn-nav-bar> -->


    <!-- 发现 -->
    <!-- 视频，采用轮播形式，放10个视频左右，小程序性能决定了这个不能太骚，如果你想骚，可以把微信买下来 -->
    <view class="" v-if="current == 1">
      <swiper class="card-swiper" :circular="true" vertical="true" :autoplay="false" duration="500" interval="5000"
        @change="cardSwiper">
        <swiper-item v-for="(item, index) in swiperList" :key="index" :class="cardCur == index ? 'cur' : ''">
          <view class="swiper-item image-banner">
            <image :src="item.url" mode="aspectFill" v-if="item.type == 'image'"
              style="height: 55%;width: 80%;border-radius: 30rpx;"></image>

            <tn-button backgroundColor="#55aaff" padding="40rpx 0" width="40%"
              style="background-image:url('/static/b2.png');background-size: 100%;" shadow fontBold
              @click="tn('/circlePages/reserve')">
              <text class="tn-color-black">主 页</text>
              <text class="tn-icon-topics tn-padding-left-xs tn-color-black"></text>
            </tn-button>

            <tn-button backgroundColor="#55aaff" padding="40rpx 0" width="40%"
              style="background-image:url('/static/b2.png');background-size: 100%;" shadow fontBold
              @click="tn('/circlePages/details')">
              <text class="tn-color-black">聊 天</text>
              <text class="tn-icon-topics tn-padding-left-xs tn-color-black"></text>
            </tn-button>
          </view>
        </swiper-item>
      </swiper>

    </view>

    <!-- 视频，采用轮播形式，放10个视频左右，小程序性能决定了这个不能太骚，如果你想骚，可以把微信买下来 -->
    <view class="" v-if="current == 0">
      <swiper class="card-swiper" :circular="true" vertical="true" :autoplay="false" duration="500" interval="5000"
        @change="cardSwiper">
        <swiper-item v-for="(item, index) in swiperList" :key="index" :class="cardCur == index ? 'cur' : ''">
          <view class="swiper-item image-banner">


            <!-- <video :id="`video-${item.id}`" :src="item.mp4"
                      loop style="height: 55%;width: 80%;border-radius: 30rpx;"></video> -->
            <view class="live">

              <image class="video" :src="item.imgurl" mode="aspectFill"></image>

              <!-- <cover-view class="content" :class="{hide: hideCoverStatus}"> -->
              <!-- 用户信息 -->
              <view class="header" :style="{ paddingTop: 52 + 'px' }">
                <view class="top">
                  <view class="user tn-flex">
                    <image class="avatar tn-flex" :src="item.imgurl" mode="scaleToFill" @click="tn('/circlePages/group?showUid='+item.userid)"></image>
                    <view class="userinfo tn-flex" @click="tn('/circlePages/group?showUid='+item.userid)">
                      <text class="username">{{ item.title }}</text>
                      <text style="font-size: 20rpx;">{{ item.focusNum }}收藏</text>
                    </view>
                    <view class="follow tn-flex">
                      <text class="tn-icon-add-fill tn-padding-right-xs tn-color-white"
                        style="font-size: 50rpx;" @click="focus(item.zsid,1)" v-if="item.focus==0"></text>
					  <text class="tn-icon-reduce-circle-fill tn-padding-right-xs tn-color-white"
					    style="font-size: 50rpx;" @click="focus(item.zsid,0)" v-if="item.focus==1"></text>
                    </view>
                  </view>
                  <view class="search-icon">
                    <view class="custom-nav__search__icon tn-icon-search tn-color-white" @click="tn('/homePages/search')"></view>
                  </view>
                </view>
                <view class="title-list tn-flex">
                 <view class="title-item tn-flex">
                    <text class="tn-icon-relation tn-padding-right-xs tn-color-white"></text>
                    <text class="text">{{ item.link_num }}链接</text>
                  </view>
                  <!-- <view class="title-item tn-flex">
                    <text class="tn-icon-reply-fill tn-padding-right-xs tn-color-white"></text>
                    <text class="text">88888分享</text>
                  </view> -->
                </view>
              </view>

              <!-- 礼物、人物进场动画 -->
              <!-- <live-gift ref="liveGift"></live-gift> -->

              <!-- 消息 -->
              <!-- <live-msg ref="liveMsg"></live-msg> -->
              <view class="message">
              	<scroll-view class="msg-scroll" @scroll="scrollEvent" :show-scrollbar="false" :scroll-with-animation="true" scroll-y>
              		<view class="msg flex flex-column" id="msg-area">
              			<view class="msg-item system">
              				{{ item.description }}
							<br/><br/><br/><br/><br/>
              			</view>
              			<!-- <view class="msg-item">
              				<image src="@/static/gif/41_1.gif" mode="heightFix"></image>
              				<image src="@/static/gif/30.gif" mode="heightFix"></image>
              				<text class="username">创作达人1：</text>
              				关注
              			</view>
              			<view class="msg-item">
              				<image src="@/static/gif/40_1.gif" mode="heightFix"></image>
              				<image src="@/static/gif/32.gif" mode="heightFix"></image>
              				<text class="username">创作达人2：</text>
              				关注
              			</view>
              			<view class="msg-item">
              				<image src="@/static/gif/40_1.gif" mode="heightFix"></image>
              				<image src="@/static/gif/36.gif" mode="heightFix"></image>
              				<text class="username">创作达人3：</text>
              				关注
              			</view> -->
              			<!-- <view class="msg-item" v-for="(item, index) in messageList">
              				<image src="@/static/gif/32.gif" mode="heightFix"></image>
              				<image src="@/static/gif/22.gif" mode="heightFix"></image>
              				<text class="username">{{ item.nickname }}：</text>
              				{{ item.message }}
              			</view> -->
              			
              		</view>
              	</scroll-view>
              </view>
              <!-- 尾巴 -->
              <!-- <view class="tabbar footerfixed dd-glass">
                <view class="tn-flex tn-flex-row-between tn-flex-col-center">
                  <view class="justify-content-item tn-margin-top">
                    <view class="tn-flex tn-flex-row-center tn-flex-col-center">
                      <view class="tn-flex tn-flex-row-center tn-flex-col-center tn-padding-right tn-padding-left-sm"
                        @click="tn('/circlePages/reserve')">
                        <view class="avatar-all">
                          <view class="tn-shadow-blur"
                            style="background-image:url('/static/logo.png');width: 60rpx;height: 60rpx;background-size: cover;">
                          </view>
                        </view>
                      </view>
                      <view
                        class="topic__info__item__input tn-flex tn-flex-direction-row tn-flex-nowrap tn-flex-col-center tn-flex-row-left">
                        <view class="topic__info__item__input__left-icon">
                          <view class="tn-icon-emoji-good"></view>
                        </view>
                        <view class="topic__info__item__input__content">
                          <input maxlength="20" placeholder-class="input-placeholder" :cursor-spacing="18"
                            placeholder="不说点啥吗？" />
                        </view>
                      </view>


                    </view>
                  </view>
                  <view
                    class="justify-content-item tn-flex-row-center tn-flex-col-center tn-margin-top tn-margin-right">
                    <view class="topic__info__item__sure">
                      <view class="tn-flex-1 justify-content-item tn-text-center">
                        <tn-button shape="round" backgroundColor="tn-cool-bg-color-15--reverse" width="100%"
                          @click="tn('/circlePages/reserve')" shadow>
                          <text class="tn-color-white" hover-class="tn-hover" :hover-stay-time="150">
                            聊 天
                          </text>
                        </tn-button>
                      </view>
                    </view>
                  </view>
                </view>
              </view> -->

              <!-- <live-footer @clear="hideCoverStatus = true" @sendLiveMsg="sendLiveMsg" @welcomeUser="welcomeUser" @sendGift="sendGift"></live-footer> -->
              <!-- </cover-view> -->
            </view>
            <!-- <image :src="item.url" mode="aspectFill" v-if="item.type=='image'" style="height: 100vh;width: 100vw;"></image> -->
          </view>
          <!-- <view class="swiper-item-png image-banner">
            <image :src="item.pngurl" mode="heightFix" v-if="item.type=='image'" style="height: 100vh;width: 100vw;"></image>
          </view> -->
		  <view class="edit tnxuanfu" @click="tn('/circlePages/reserve?zsid='+item.zsid)">
		    <view class="bg0 pa">
		      <view class="bg1">
		        <image src="/static/my6.png" class="button-shop shadow"></image>
		      </view>
		    </view>
		    <view class="hx-box pa">
		      <view class="pr">
		        <view class="hx-k1 pa0">
		          <view class="span"></view>
		        </view>
		        <view class="hx-k2 pa0">
		          <view class="span"></view>
		        </view>
		        <view class="hx-k3 pa0">
		          <view class="span"></view>
		        </view>
		        <view class="hx-k4 pa0">
		          <view class="span"></view>
		        </view>
		        <view class="hx-k5 pa0">
		          <view class="span"></view>
		        </view>
		        <view class="hx-k6 pa0">
		          <view class="span"></view>
		        </view>
		      </view>
		    </view>
		  </view>
        </swiper-item>
      </swiper>
      <!-- <view class="indication">
          <block v-for="(item,index) in swiperList" :key="index">
              <view class="spot" :class="cardCur==index?'active':''"></view>
          </block>
      </view> -->
    </view>

    <!-- 活动 -->
    <view class="" v-if="current == 2" style="background-color:#1e1b30;">
      <view class="tn-margin-bottom-lg">
        <block v-for="(item, index) in reserve" :key="index">
          <view class="article-shadow tn-margin" @click="tn('/circlePages/reserve')">
            <view class="tn-flex">
              <view class="image-pic tn-margin-sm" :style="'background-image:url(' + item.userAvatar + ')'">
                <view class="image-article">
                </view>
              </view>
              <view class="tn-margin-sm tn-padding-top-xs" style="width: 100%;">
                <view class="tn-text-lg tn-text-bold clamp-text-1 tn-text-justify" style="color:#FFF">
                  {{ item.title }}
                </view>
                <view class="tn-flex tn-flex-row-between tn-flex-col-between tn-padding-top-xs"
                  style="min-height: 105rpx;">
                  <text class="tn-text-df tn-color-gray clamp-text-2 tn-text-justify">
                    {{ item.desc }}
                  </text>
                  <!-- <view class="justify-content-item tn-flex tn-flex-col-center">
                    <tn-avatar-group :lists="item.viewUser.latestUserAvatar" size="sm"></tn-avatar-group>
                  </view> -->
                </view>
                <view class="tn-flex tn-flex-row-between tn-flex-col-between">
                  <view v-for="(label_item, label_index) in item.label" :key="label_index"
                    class="justify-content-item tn-tag-content__item tn-margin-right tn-round tn-text-sm tn-text-bold"
                    :class="[`tn-bg-${item.color}--light tn-color-${item.color}`]">
                    <text class="tn-tag-content__item--prefix">#</text> {{ label_item }}
                  </view>
                  <view class="justify-content-item tn-color-gray tn-text-center tn-color-gray--disabled"
                    style="padding-top: 5rpx;">
                    <text class="tn-icon-eye tn-padding-right-xs tn-text-lg"></text>
                    <text class="tn-padding-right tn-text-df">{{ item.collectionCount }}</text>
                    <text class="tn-icon-fire tn-padding-right-xs tn-text-lg"></text>
                    <text class="tn-text-df">{{ item.likeCount }}</text>
                  </view>
                </view>
              </view>
            </view>
          </view>
        </block>
      </view>
      <!-- <view class='tn-tabbar-height'></view> -->
    </view>

    <!-- 压屏窗-->
    <tn-landscape :show="show2" @close="closeLandscape" closePosition="bottom" :closeSize="60">

      <!-- 方式9 start-->
      <view class="tn-flex" style="margin-bottom: 100rpx;padding-top: 46vh;">
        <!-- <view class="tn-flex-1 tn-margin-sm tn-radius" @click="navEdit">
          <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
            <view class="icon9__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-bg-red tn-color-white">
              <view class="tn-icon-camera-fill"></view>
            </view>  
            <view class="tn-color-white tn-text-sm tn-text-center">
              <text class="tn-text-ellipsis">发布动态</text>
            </view>
          </view>
        </view>
        <view class="tn-flex-1 tn-margin-sm tn-radius" @click="navCreate">
          <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
            <view class="icon9__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-bg-cyan tn-color-white">
              <view class="tn-icon-flag-fill"></view>
            </view>  
            <view class="tn-color-white tn-text-sm tn-text-center">
              <text class="tn-text-ellipsis">发起活动</text>
            </view>
          </view>
        </view> -->
        <view class="tn-flex-1 tn-margin-sm tn-radius" @click="navBuild">
          <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
            <view
              class="icon9__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur tn-bg-purplered tn-color-white">
              <view class="tn-icon-team-fill"></view>
            </view>
            <view class="tn-color-white tn-text-sm tn-text-center">
              <text class="tn-text-ellipsis">创建智能体</text>
            </view>
          </view>
        </view>
      </view>


    </tn-landscape>
    <app-update ref="app_update" :tabbar="false" @closeSearchModel="closeSearchModel"></app-update>
  </view>
</template>

<script>
import liveHeader from './components/liveHeader.vue';
import liveGift from './components/liveGift.vue';
import liveMsg from './components/liveMsg.vue';
import liveFooter from './components/liveFooter.vue';
import appUpdate from "@/components/yzhua006-update/app-update.vue";
export default {
  components: {appUpdate, liveHeader, liveGift, liveMsg, liveFooter},
  data() {
    return {
      bodyNavHeight: 0, //元素的所需高度
      hideCoverStatus: false,
      cardCur: 0,
      swiperList: null,
      current: 0,
      scrollList: [
        { name: '官方' },
        { name: '素人' },
        { name: '世界', count: '' }
      ],
      latestUserAvatar: [
        { src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg' },
        { src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg' },
        { src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg' },
        { src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg' },
      ],
      bloggerList: [{
        id: 0,
        type: 'image',
        name: 'UI设计',
        text: '629人关注',
        url: 'https://resource.tuniaokj.com/images/blogger/blogger_beibei.jpg',
      }, {
        id: 1,
        type: 'image',
        name: '前端开发',
        text: '688人关注',
        url: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg',
      }, {
        id: 2,
        type: 'image',
        name: '校园生活',
        text: '552人关注',
        url: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg',
      }, {
        id: 3,
        type: 'image',
        name: '户外摄影',
        text: '105人关注',
        url: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg',
      }, {
        id: 4,
        type: 'image',
        name: '电影点评',
        text: '387人关注',
        url: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg',
      }, {
        id: 5,
        type: 'image',
        name: '热血动漫',
        text: '643人关注',
        url: 'https://resource.tuniaokj.com/images/blogger/content_1.jpeg',
      }],
      // 内容默认隐藏显示的高度
      contentHideShowHeight: 0,
      content: [
        {
          userAvatar: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg',
          userName: '图鸟北北',
          date: '2022年5月20日',
          label: ['开源', '创意', 'UI框架'],
          desc: '开源可商用组件，助你开发酷炫UI一臂之力',
          content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
          viewUser: {
            latestUserAvatar: [
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg' },
            ],
            viewUserCount: 62
          },
          collectionCount: 439,
          commentCount: 46,
          likeCount: 83
        },
        {
          userAvatar: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg',
          userName: '图鸟北北',
          date: '2022年5月20日',
          label: ['开源', '创意', 'UI框架'],
          desc: '开源可商用组件，助你开发酷炫UI一臂之力',
          content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
          mainImage: [
            'https://resource.tuniaokj.com/images/blogger/content_1.jpeg'
          ],
          viewUser: {
            latestUserAvatar: [
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg' },
            ],
            viewUserCount: 12
          },
          collectionCount: 902,
          commentCount: 64,
          likeCount: 83
        },
        {
          userAvatar: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg',
          userName: '图鸟北北',
          date: '2022年5月20日',
          label: [],
          desc: '',
          content: '',
          mainImage: [
            'https://resource.tuniaokj.com/images/shop/computer2.jpg',
            'https://resource.tuniaokj.com/images/shop/prototype2.jpg',
          ],
          viewUser: {
            latestUserAvatar: [
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg' },
            ],
            viewUserCount: 56
          },
          collectionCount: 431,
          commentCount: 26,
          likeCount: 84
        },
        {
          userAvatar: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg',
          userName: '图鸟北北',
          date: '2022年5月20日',
          label: ['开源', '创意'],
          desc: '开源可商用组件',
          content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了 基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
          mainImage: [
            'https://resource.tuniaokj.com/images/swiper/swiper2.jpg',
            'https://resource.tuniaokj.com/images/swiper/swiper3.jpg',
            'https://resource.tuniaokj.com/images/swiper/swiper4.jpg',
          ],
          viewUser: {
            latestUserAvatar: [
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg' },
            ],
            viewUserCount: 231
          },
          collectionCount: 780,
          commentCount: 89,
          likeCount: 82
        },
        {
          userAvatar: 'https://resource.tuniaokj.com/images/blogger/blogger_beibei.jpg',
          userName: '图鸟北北',
          date: '2022年5月20日',
          label: ['开源', '链接'],
          desc: 'https://www.yuque.com/tuniao',
          mainImage: [
            'https://resource.tuniaokj.com/images/shop/watch1.jpg',
            'https://resource.tuniaokj.com/images/shop/watch2.jpg',
            'https://resource.tuniaokj.com/images/shop/pillow2.jpg',
            'https://resource.tuniaokj.com/images/shop/pillow.jpg',
          ],
          viewUser: {
            latestUserAvatar: [
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg' },
            ],
            viewUserCount: 28
          },
          collectionCount: 432,
          commentCount: 33,
          likeCount: 12
        },
        {
          userAvatar: 'https://resource.tuniaokj.com/images/blogger/content_1.jpeg',
          userName: '图鸟北北',
          date: '2022年5月20日',
          label: ['开源', '创意'],
          desc: '开源可商用组件',
          mainImage: [
            'https://resource.tuniaokj.com/images/blogger/y11.jpg',
            'https://resource.tuniaokj.com/images/blogger/y33.jpg',
            'https://resource.tuniaokj.com/images/blogger/y22.jpg',
            'https://resource.tuniaokj.com/images/blogger/y44.jpg',
            'https://resource.tuniaokj.com/images/blogger/y55.jpg',
          ],
          viewUser: {
            latestUserAvatar: [
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg' },
              { src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg' },
            ],
            viewUserCount: 65
          },
          collectionCount: 265,
          commentCount: 22,
          likeCount: 62
        }
      ],
      reserve: [{
        userAvatar: '/static/ai/p1.png',
        userName: '尤娜',
        date: '2022年5月20日',
        color: 'red',
        label: ['性格潇洒'],
        title: '尤娜',
        desc: '可盐可甜，期待您的探索。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/prototype2.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 567
        },
        collectionCount: 543,
        commentCount: 543,
        likeCount: 206
      },
      {
        userAvatar: '/static/ai/p4.png',
        userName: '林嘉',
        date: '2022年5月20日',
        color: 'cyan',
        label: ['娇羞腼腆'],
        title: '林嘉',
        desc: '娇羞萌妹，性格可爱。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/prototype1.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 987
        },
        collectionCount: 567,
        commentCount: 69,
        likeCount: 65
      },
      {
        userAvatar: '/static/ai/p6.png',
        userName: '灵儿',
        date: '2022年5月20日',
        color: 'blue',
        label: ['性格高冷'],
        title: '灵儿',
        desc: '二次元，高冷性格老婆。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/computer2.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 321
        },
        collectionCount: 654,
        commentCount: 232,
        likeCount: 543
      },
      {
        userAvatar: '/static/ai/p8.png',
        userName: '晨曦',
        date: '2022年5月20日',
        color: 'green',
        label: ['性格单纯'],
        title: '晨曦',
        desc: '性格单纯可爱的学生。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/phonecase1.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 230
        },
        collectionCount: 987,
        commentCount: 236,
        likeCount: 342
      },
      {
        userAvatar: '/static/ai/p16.png',
        userName: '林悦',
        date: '2022年5月20日',
        color: 'orange',
        label: ['清冷御姐'],
        title: '林悦',
        desc: '邻家高冷御姐。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/phonecase2.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 106
        },
        collectionCount: 765,
        commentCount: 32,
        likeCount: 91
      },
      {
        userAvatar: '/static/ai/p2.png',
        userName: '艾琳',
        date: '2022年5月20日',
        color: 'purplered',
        label: ['性格潇洒'],
        title: '艾琳',
        desc: '性格洒脱的多金女一枚。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/watch1.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 232
        },
        collectionCount: 776,
        commentCount: 48,
        likeCount: 86
      },
      {
        userAvatar: '/static/ai/p5.png',
        userName: '落雁',
        date: '2022年5月20日',
        color: 'purple',
        label: ['可爱娇羞'],
        title: '落雁',
        desc: '可爱娇羞，单纯善良。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/sticker.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 456
        },
        collectionCount: 342,
        commentCount: 42,
        likeCount: 76
      },
      {
        userAvatar: '/static/ai/p7.png',
        userName: '童薇',
        date: '2022年5月20日',
        color: 'brown',
        label: ['清冷御姐'],
        title: '童薇',
        desc: '清冷御姐，二次元美女。',
        mainImage: 'https://resource.tuniaokj.com/images/shop/card.jpg',
        viewUser: {
          latestUserAvatar: [{
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
          },
          {
            src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
          },
          ],
          viewUserCount: 129
        },
        collectionCount: 265,
        commentCount: 22,
        likeCount: 62
      }
      ],
      adList: [
        { image: 'https://resource.tuniaokj.com/images/swiper/ad1.jpg' },
        { image: 'https://resource.tuniaokj.com/images/swiper/ad2.jpg' },
        { image: 'https://resource.tuniaokj.com/images/swiper/ad3.jpg' },
        { image: 'https://resource.tuniaokj.com/images/swiper/ad4.jpg' },
        { image: 'https://resource.tuniaokj.com/images/swiper/ad5.jpg' }
      ],
      adAutoplay: false,

      /* 压屏窗*/
      show2: false,
      maskCloseable: true,
      border: true,
	  boxShow: true,
	  loginToken: uni.getStorageSync('loginToken') || '',
	  userInfo: uni.getStorageSync('userInfo') || null,
    }
  },
  created() {
	  this.islogin();
  	  this.getAllData();
  },
  onLoad() {
	this.islogin();
    this.$nextTick(() => {
      // this.$refs.liveGift.sendGift();
      this.$refs.liveGift.welcomeUser();
    })
    this.initContentData()
    this.contentHideShowHeight = uni.upx2px(56) * 3;
	this.getAllData();
  },
  onReady() {
    // this.$nextTick(() => {
    //   this.getContentRectInfo()
    // })
  },
  onShow() {
	this.islogin();
    this.adAutoplay = true;
	this.getAllData();
    console.log('makeNewAvatar:' + uni.getStorageSync('makeNewAvatar'))
  },
  mounted() {
      this.$refs.app_update.update(); //调用子组件 检查更新    
  },
  onHide() {
    this.adAutoplay = false
  },
  methods: {
	islogin () {
	    if (this.loginToken == '') {
	    	uni.navigateTo({
	    		url: '/minePages/login'
	    	})
	    }
	},
	focus(id,mytype){
		var that = this;
		if(mytype == 1){
			uni.showModal({
				title: '提示',
				content: '是否确定收藏智能体?',
				success: function(res) {
					if (res.confirm) {
						let formData = {
							zsid: id,
							userid: that.userInfo.userid,
							type: mytype
						};
						that.$Request.postApi("/module.php?m=aichat_zhushou_user&a=use&ajax=1", formData).then((res) => {
							if (res.error == 0) {
								uni.showToast({
								title: '收藏成功',
								icon: 'none',
								duration: 1000
								});
								that.getAllData();
							} else {
								uni.showModal({
									showCancel: false,
									title: '收藏失败',
									content: res.message,
								});
							}
						});
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
			});
		}else{
			uni.showModal({
				title: '提示',
				content: '是否确定取消收藏智能体?',
				success: function(res) {
					if (res.confirm) {
						let formData = {
							zsid: id,
							userid: that.userInfo.userid,
							type: mytype
						};
						that.$Request.postApi("/module.php?m=aichat_zhushou_user&a=use&ajax=1", formData).then((res) => {
							if (res.error == 0) {
								uni.showToast({
								title: '取消收藏成功',
								icon: 'none',
								duration: 1000
								});
								that.getAllData();
							} else {
								uni.showModal({
									showCancel: false,
									title: '取消收藏失败',
									content: res.message,
								});
							}
						});
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
			});
		}
	},
	getAllData() {
	  let formData = {
	  	linkUserid: this.userInfo.userid
	  };
	  this.$Request.getApi("/module.php?m=aichat_zhushou&a=list&ajax=1&per_page=0&catid=0&type=all",formData).then((res) => {
		if (res.error == 0) {
			this.swiperList = res.data.list
		} else {
			uni.showModal({
				showCancel: false,
				title: '获取数据失败',
				content: res.message,
			});
		}
	  });
	},
    // cardSwiper
    cardSwiper(e) {
      this.cardCur = e.detail.current
      for (let i = 0; i < this.swiperList.length; i++) {
        const videoContext = uni.createVideoContext(`video-${this.swiperList[i]['id']}`, this)
        if (i === this.cardCur) {
          // #ifdef H5
          videoContext.play()
          // #endif
          // #ifndef H5
          videoContext.play()
          // #endif

        } else {
          // #ifdef MP-WEIXIN
          videoContext.stop()
          // #endif
          // #ifndef MP-WEIXIN
          videoContext.pause()
          // #endif
        }
      }
    },
    // 暂停所有视频
    // stopAllVideo() {
    //   this.current = 0
    // },
    // tab选项卡切换
    tabChange(index) {
      this.current = index
    },
    // 跳转
    tn(e) {
      uni.navigateTo({
        url: e,
      });
    },
    // 震动跳转
    navEdit(e) {
      wx.vibrateLong();
      uni.navigateTo({
        url: '/circlePages/edit'
      })
    },
    // 震动跳转
    navCreate(e) {
      wx.vibrateLong();
      uni.navigateTo({
        url: '/circlePages/create'
      })
    },
    // 震动跳转
    navBuild(e) {
      wx.vibrateLong();
      uni.navigateTo({
        url: '/circlePages/build'
      })
    },
    // 处理内容，给内容添加对应的标识信息
    initContentData() {
      this.content.forEach((item, index) => {
        // 是否需要隐藏内容
        item.hideContent = false
        // 显示所有内容
        item.showAllContent = false
        // 内容容器的实际高度
        item.contentContainerHeight = 0
        // 内容容器是否初始化完成
        item.contentContainerInit = false
        this.$set(this.content, index, item)
      })
    },
    // 获取内容容器的信息
    getContentRectInfo() {
      let contentRect = {}
      const query = uni.createSelectorQuery().in(this)
      // 筛选出存在内容的数据
      this.content.forEach((item, index) => {
        if (item?.content) {
          query.select(`#blogger__content--${index}`).boundingClientRect()
          contentRect[index] = item
        }
      })
      // 获取所有内容的宽高信息
      query.exec(res => {
        if (!res) {
          setTimeout(() => {
            this.getContentRectInfo()
          }, 10)
          return
        }
        // console.log(res);
        res.map((item) => {
          // console.log(item.height, this.contentHideShowHeight);
          // 获取对应的标号
          const id = item.id
          const idIndex = /blogger__content--(\d)/.exec(id)[1]
          let contentItem = this.content[idIndex]
          contentItem.hideContent = item.height > this.contentHideShowHeight
          contentItem.showAllContent = false
          contentItem.contentContainerHeight = item.height
          contentItem.contentContainerInit = true
          this.$set(this.content, idIndex, contentItem)

          // console.log(/blogger__content--(\d)/.exec(id)[1]);
        })
      })
    },
    // 切换内容的显示与隐藏
    switchContentShowStatus(index) {
      const contentItem = this.content[index]
      contentItem.showAllContent = !contentItem.showAllContent
      this.$set(this.content, index, contentItem)
    },

    // 弹出压屏窗
    showLandscape() {
      this.openLandscape()
    },
    // 打开压屏窗
    openLandscape() {
      // wx.vibrateLong();
      this.show2 = true
    },
    // 关闭压屏窗
    closeLandscape() {
      this.show2 = false
    },

    welcomeUser() {
      this.$refs.liveGift.welcomeUser();
    },

    sendGift(data) {
      this.$refs.liveGift.sendGift(data.index);
    },

    sendLiveMsg(data) {
      this.$refs.liveMsg.sendLiveMsg(data.msg);
    },
	closeSearchModel(e) {
	    if (e == "true") {
	        this.boxShow = true;
	    } else if (e == "false") {
	        this.boxShow = false;
	    }
	},
  }
}
</script>

<style lang="scss" scoped>
.template-circle {
  max-height: 100vh;
  // scroll: none;
  overflow: hidden;
}

.custom-nav__back[data-v-92bb8f34] {
  margin-left: 0rpx;
}

.message {
	position: absolute;
	bottom: 100rpx;
	left: 20rpx;
	right: 20rpx;
	min-width: 750rpx;

	.msg-scroll {
		height: 600rpx;

		&.mask {
			-webkit-mask: -webkit-gradient(linear,left 30%,left top,from(#000),to(transparent));
		}

		.msg-item {
			background: rgba(0, 0, 0, 0.3);
			border-radius: 100px;
			max-width: 80%;
			margin-bottom: 10rpx;
			color: #fff;
			font-size: 28rpx;
			padding: 15rpx 20rpx;
			border-radius: 20rpx;
			white-space: pre-wrap;
			align-self: flex-start;
			transition: opacity 0.3s ease;
			
			image {
				height: 36rpx;
				margin-right: 5rpx;
				vertical-align: middle;
			}

			.username {
				font-weight: 500;
				color: #77c4bc;
			}
			
			&.system {
				color: #ffffff;
			}
		}
	}
}
// .custom-nav__search__icon[data-v-92bb8f34] {
//   margin-left: -2px;
// }

// .tn-tabbar-height {
//   min-height: 120rpx;
//   height: calc(140rpx + env(safe-area-inset-bottom) / 2);
// }


/* 自定义导航栏内容 start */
.custom-nav {
  height: 100%;

  &__back {
    margin: auto 5rpx;
    font-size: 40rpx;
    margin-right: 10rpx;
    margin-left: 30rpx;
    flex-basis: 5%;
  }

  &__search {
    flex-basis: 60%;
    width: 100%;
    height: 100%;

    &__box {
      width: 100%;
      height: 70%;
      padding: 10rpx 0;
      margin: 0 30rpx;
      border-radius: 60rpx 60rpx 0 60rpx;
      font-size: 24rpx;
    }

    &__icon {
      padding-top: 10rpx;
      padding-right: 30rpx;
      margin-left: 20rpx;
      font-size: 50rpx;
    }

    &__text {
      color: #AAAAAA;
    }
  }
}

.logo-image {
  width: 60rpx;
  height: 60rpx;
  position: relative;
  margin-top: -15rpx;
}

.logo-pic {
  background-size: cover;
  background-repeat: no-repeat;
  // background-attachment:fixed;
  background-position: top;
  border-radius: 50%;
}

/* 自定义导航栏内容 end */
/* 博主头像 start*/
.image-circle {
  // padding: 95rpx;
  width: 190rpx;
  height: 190rpx;
  font-size: 40rpx;
  font-weight: 300;
  position: relative;
}

.image-pic {
  background-size: cover;
  background-repeat: no-repeat;
  // background-attachment:fixed;
  background-position: top;
  border-radius: 10rpx;
}


/* 文章内容 start*/
.blogger {
  &__item {
    padding: 30rpx;
  }

  &__author {
    &__btn {
      margin-right: -12rpx;
      opacity: 0.5;
    }
  }

  &__desc {
    line-height: 55rpx;

    &__label {
      padding: 0 20rpx;
      margin: 0rpx 18rpx 0 0;

      &--prefix {
        color: #00FFC8;
        padding-right: 10rpx;
      }
    }

    &__content {}
  }

  &__content {
    margin-top: 18rpx;
    padding-right: 18rpx;

    &__data {
      line-height: 46rpx;
      text-align: justify;
      overflow: hidden;
      transition: all 0.25s ease-in-out;

    }

    &__status {
      margin-top: 10rpx;
      font-size: 26rpx;
      color: #82B2FF;
    }
  }

  &__main-image {
    border-radius: 16rpx;

    &--1 {
      max-width: 80%;
      max-height: 300rpx;
    }

    &--2 {
      max-width: 260rpx;
      max-height: 260rpx;
    }

    &--3 {
      height: 212rpx;
      width: 100%;
    }
  }

  &__count-icon {
    font-size: 40rpx;
    padding-right: 5rpx;
  }

  &__ad {
    width: 100%;
    height: 500rpx;
    transform: translate3d(0px, 0px, 0px) !important;

    ::v-deep .uni-swiper-slide-frame {
      transform: translate3d(0px, 0px, 0px) !important;
    }

    .uni-swiper-slide-frame {
      transform: translate3d(0px, 0px, 0px) !important;
    }

    &__item {
      position: absolute;
      width: 100%;
      height: 100%;
      transform-origin: left center;
      transform: translate3d(100%, 0px, 0px) scale(1) !important;
      transition: transform 0.25s ease-in-out;
      z-index: 1;

      &--0 {
        transform: translate3d(0%, 0px, 0px) scale(1) !important;
        z-index: 4;
      }

      &--1 {
        transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
        z-index: 3;
      }

      &--2 {
        transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
        z-index: 2;
      }
    }

    &__content {
      border-radius: 40rpx;
      width: 640rpx;
      height: 500rpx;
      overflow: hidden;
    }

    &__image {
      width: 100%;
      height: 100%;
    }
  }
}

/* 文章内容 end*/

/* 间隔线 start*/
.tn-strip-bottom {
  width: 100%;
  border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
}

/* 间隔线 end*/

/* 广告内容 start */
.ad-image {
  width: 80rpx;
  height: 80rpx;
  position: relative;
}

.ad-pic {
  background-size: cover;
  background-repeat: no-repeat;
  // background-attachment:fixed;
  background-position: top;
  border-radius: 20%;
}

/* 自定义导航栏内容 end */


/* 全屏轮播  start*/

.card-swiper {
  height: 100vh !important;
}

.card-swiper swiper-item {
  width: 750rpx !important;
  left: 0rpx;
  box-sizing: border-box;
  overflow: initial;
}

.card-swiper swiper-item .swiper-item {
  width: 100%;
  display: block;
  height: 100vh;
  border-radius: 0rpx;
  transform: scale(1);
  transition: all 0.2s ease-in 0s;
  overflow: hidden;
}

.card-swiper swiper-item.cur .swiper-item {
  transform: none;
  transition: all 0.2s ease-in 0s;
}

.card-swiper swiper-item .swiper-item-png {
  width: 100%;
  display: block;
  border-radius: 0rpx;
  transform: translate(1040rpx, 20rpx) scale(0.5, 0.5);
  transition: all 0.6s ease 0s;
  // overflow: hidden;
}

.card-swiper swiper-item.cur .swiper-item-png {
  width: 900rpx;
  transform: translate(-80rpx, 0rpx) scale(1, 1);
  transition: all 0.6s ease 0s;
}

.image-banner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-banner image {
  width: 100%;
}

.live {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video {
  height: 100vh;
  width: 100%;
}

.content {
  // background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  transition: left 0.3s ease;
}

.hide {
  left: 100vw;
}

.header {
  position: absolute;
  top: 0rpx;
  left: 20rpx;
  right: 0;
  min-width: 750rpx;

  .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    .search {
      margin-right: 50rpx;
    }
  }

  .close {
    margin-right: 20rpx;
  }

  .user {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    padding: 6rpx;

    .avatar {
      height: 60rpx;
      width: 60rpx;
      border-radius: 100%;
    }

    .username {
      color: #fff;
      font-size: 26rpx;
      font-weight: 500;
      align-self: flex-start;
    }

    .desc {
      color: #ccc;
      font-size: 22rpx;
      align-self: flex-start;
    }

    .userinfo {
      display: flex;
      flex-direction: column;
      // align-items: center;
      padding: 0 10rpx;
      color: #fff;

      .username {
        font-size: 24rpx;
        font-weight: 500;
        align-self: flex-start;
      }

      .desc {
        color: #ccc;
        font-size: 22rpx;
        align-self: flex-start;
      }
    }

    .follow {
      // font-size: 22rpx;
      // background: linear-gradient(to right, #FF4656, #FE2B8C);
      // color: #fff;
      // width: 90rpx;
      // border-radius: 100rpx;
      // height: 60rpx;
      // line-height: 60rpx;
      // justify-content: center;
    }
  }

  .search-icon {
    margin-right: 26rpx;
  }

  .onlineuser {
    .avatar {
      position: relative;

      text {
        width: 72rpx;
        height: 30rpx;
        line-height: 30rpx;
        font-size: 16rpx;
        text-align: center;
        position: absolute;
        left: 2rpx;
        bottom: 0px;
        font-weight: 500;
        color: #fff;
      }

      image {
        width: 74rpx;
        height: 74rpx;
        border-radius: 100%;
        margin-right: 20rpx;
      }

      &:first-child {

        &::after {
          content: " ";
          width: 74rpx;
          height: 74rpx;
          // background-image: url(@/static/icons/shouhu.webp);
          background-size: 74rpx 74rpx;
          background-repeat: no-repeat;
          background-position: center center;
          display: block;
          position: absolute;
          left: 0px;
          top: 0px;
          z-index: 1;
        }

        text {
          border: none;
          background-image: url(https://vr0.6rooms.com/tao/i/n7/2449060832f8a39fe6772f87de1bef9d.png);
          background-size: 100% 100%;
        }
      }
    }
  }

  .title-list {
    margin-top: 10rpx;

    .title-item {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 100rpx;
      margin-right: 20rpx;
      padding: 5rpx 15rpx;

      .text {
        font-size: 24rpx;
        color: #fff;
        margin-left: 2rpx;
      }
    }
  }
}

/* 轮播指示点 start*/
.indication {
  z-index: 9999;
  width: 100%;
  height: 36rpx;
  position: fixed;
  // display:flex;
  display: block;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.spot {
  background-color: #000;
  opacity: 0.3;
  width: 10rpx;
  height: 10rpx;
  border-radius: 20rpx;
  margin: 20rpx 0 !important;
  left: 95vw;
  top: -60vh;
  position: relative;
}

.spot.active {
  opacity: 0.6;
  height: 30rpx;
  background-color: #000;
}

/* 资讯主图 start*/
.image-article {
  border-radius: 8rpx;
  border: 1rpx solid #F8F7F8;
  width: 200rpx;
  height: 200rpx;
  position: relative;
}

.image-pic {
  background-size: cover;
  background-repeat: no-repeat;
  // background-attachment:fixed;
  background-position: top;
  border-radius: 10rpx;
}

.article-shadow {
  border-radius: 15rpx;
  box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
}

/* 文字截取*/
.clamp-text-1 {
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.clamp-text-2 {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* 标签内容 start*/
.tn-tag-content {
  &__item {
    display: inline-block;
    line-height: 35rpx;
    padding: 5rpx 25rpx;

    &--prefix {
      padding-right: 10rpx;
    }
  }
}


/* 图标容器9 start */
.icon9 {
  &__item {
    width: 30%;
    background-color: #FFFFFF;
    border-radius: 10rpx;
    padding: 30rpx;
    margin: 20rpx 10rpx;
    transform: scale(1);
    transition: transform 0.3s linear;
    transform-origin: center center;

    &--icon {
      width: 110rpx;
      height: 110rpx;
      font-size: 65rpx;
      border-radius: 50%;
      margin: 20rpx 40rpx;
      position: relative;
      z-index: 1;

      &::after {
        content: " ";
        position: absolute;
        z-index: -1;
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
        border-radius: inherit;
        opacity: 1;
        transform: scale(1, 1);
        background-size: 100% 100%;
        background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg2.png);
      }
    }
  }
}


/* 悬浮 */
.tnxuanfu {
  animation: suspension 3s ease-in-out infinite;
}

@keyframes suspension {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.8rem);
  }
}

/* 悬浮按钮 */
.button-shop {
  width: 120rpx;
  height: 120rpx;
  display: flex;
  flex-direction: row;
  position: fixed;
  /* bottom:200rpx;
      right: 20rpx; */
  left: 5rpx;
  top: 5rpx;
  z-index: 1001;
  border-radius: 100px;
  opacity: 0.9;
}


/* 按钮 */
.edit {
  bottom: 300rpx;
  right: 50%;
  position: fixed;
  z-index: 9999;
}

/* 底部 start*/
.footerfixed {
  position: fixed;
  width: 100%;
  bottom: env(safe-area-inset-bottom);
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
}

.tabbar {
  align-items: center;
  // min-height: 130rpx;
  padding: 0;
  height: calc(170rpx + env(safe-area-inset-bottom) / 2);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: 10rpx;
  padding-right: 10rpx;
}

/* 毛玻璃*/
.dd-glass {
  width: 100%;
  backdrop-filter: blur(20rpx);
  -webkit-backdrop-filter: blur(20rpx);
}

/* 头像*/
.avatar-all {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
}

/* 内容*/
.topic {
  position: relative;
  height: 100%;
  z-index: 1;
  margin-bottom: 120rpx;


  /* 表单信息 start */
  &__info {
    margin: 0 50rpx;
    margin-top: 105rpx;
    padding: 30rpx 51rpx;
    border-radius: 20rpx;
    background-color: rgba(255, 255, 255, 1);
    border: 2rpx solid rgba(255, 255, 255, 0.1);
    box-shadow: 0rpx 10rpx 50rpx 0rpx rgba(0, 3, 72, 0.1);

    &__item {

      &__input {
        width: 400rpx;
        height: 60rpx;
        border: 1rpx solid #C6D1D8;
        border-radius: 39rpx;

        &__left-icon {
          width: 10%;
          font-size: 44rpx;
          margin-left: 20rpx;
          margin-right: 5rpx;
          color: #000000;
        }

        &__content {
          width: 80%;
          padding-left: 10rpx;

          &--verify-code {
            width: 56%;
          }

          input {
            font-size: 30rpx;
            color: #000000;
            // letter-spacing: 0.1em;
          }
        }

        &__right-icon {
          width: 10%;
          font-size: 34rpx;
          margin-right: 20rpx;
          color: #78909C;
        }

        &__right-verify-code {
          width: 34%;
          margin-right: 20rpx;
        }
      }

      &__button {
        width: 100%;
        height: 60rpx;
        text-align: center;
        font-size: 31rpx;
        font-weight: bold;
        line-height: 77rpx;
        // text-indent: 1em;
        border-radius: 100rpx;
        color: #FFFFFF;
        background-color: rgba(255, 255, 255, 0.2);
        // border: 2rpx solid #FFFFFF;
      }

      &__sure {
        height: 60rpx;
        width: 140rpx;
      }

    }
  }

  /* 表单信息 end */

  /* 内容 end */

}

::v-deep.input-placeholder {
  font-size: 30rpx;
  color: #000000;
}


.pa,
.pa0 {
  position: absolute
}

.pa0 {
  left: 0;
  top: 0
}


.bg0 {
  width: 100rpx;
  height: 100rpx;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg1 {
  width: 100%;
  height: 100%;
}




.hx-box {
  top: 50%;
  left: 50%;
  width: 100rpx;
  height: 100rpx;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(75deg) rotateZ(10deg);
}

.hx-box .pr {
  width: 100rpx;
  height: 100rpx;
  transform-style: preserve-3d;
  animation: hxz 20s linear infinite;
}

@keyframes hxz {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(-360deg);
  }
}



.hx-box .pr .pa0 {
  width: 100rpx;
  height: 100rpx;
  /* border: 4px solid #5ec0ff; */
  border-radius: 1000px;
}

.hx-box .pr .pa0 .span {
  display: block;
  width: 100%;
  height: 100%;
  background: url(https://resource.tuniaokj.com/images/cool_bg_image/arc4.png) no-repeat center center;
  background-size: 100% 100%;
  animation: hx 4s linear infinite;
}

@keyframes hx {
  to {
    transform: rotate(360deg);
  }
}

.hx-k1 {
  transform: rotateX(-60deg) rotateZ(-60deg)
}

.hx-k2 {
  transform: rotateX(-30deg) rotateZ(-30deg)
}

.hx-k3 {
  transform: rotateX(0deg) rotateZ(0deg)
}

.hx-k4 {
  transform: rotateX(30deg) rotateZ(30deg)
}

.hx-k5 {
  transform: rotateX(60deg) rotateZ(60deg)
}

.hx-k6 {
  transform: rotateX(90deg) rotateZ(90deg)
}
</style>
